Contents | Index | < Browse | Browse >

XMPLFormat string to convert a time specificationUXMPL
A time format string consists of format commands and the output characters. Format commands tell the output function how to convert a parameter to character output. All characters, which build no format command, that is, which do not start with the "%" percent sign, remain untouched and will be written as passed to the output function.

The structure of format commands:

%type

MARKtypeUMARK
'a' for the abbreviated name of the weekday (Mon, Tue, ...)
'A' for the complete name of the weekday
'b' for the abbreviated name of the month (Jan, Feb, ...)
'B' for the complete name of the month
'c' for a short version of date and time
'd' for the number of the day of the month, ranging from 1 to 31
'H' for the american number of the hour, ranging from 1 to 12
'I' for the european number of the hour, ranging from 0 to 23
'j' for the number of the day of the year, ranging from 1 to 366
'm' for the number of the month, ranging from 1 to 12
'M' for the number of minutes, ranging from 0 to 59
'p' for the half of the day ("a.m." or "p.m.")
'S' for the number of seconds, ranging from 0 to 61
'U' for the number of the week of the year, ranging from 0 to 53 (with Sunday being the first day of the week)
'w' for the number of the day of the week, ranging from 0 to 6 (with Sunday being number 0)
'W' for the number of the week of the year, ranging from 0 to 53 (with Monday being the first day of the week)
'x' for a short version of the date
'X' for the time
'y' for the two-digit version of the year (without the century)
'Y' for the complete version of the year (including the century)
'Z' for the name of the time zone
'%' for a percent sign

The behaviour of all other commands is undefined.